package com.fzy.modules.people.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 客户
 */
@Data
public class Customer {
    private String id;
    private String categoryId;//客户分类
    private String code;//客户编码
    private String name;//客户名称
    private String contact01;//联系人
    private String qq01;
    private String tel01;
    private String mobile01;
    private String contact02;
    private String qq02;
    private String tel02;
    private String mobile02;
    private String address;//地址
    private String addressShipping;//
    private String addressReceipt;//收货地址
    private String py;
    private Double initReceivables;//应收期初余额
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date initReceivablesDt;//应收期初余额日期
    private Double initPayables;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date initPayablesDt;
    private String bankName;//开户行
    private String bankAccount;//开户行账号
    private String taxNumber;//税号
    private String fax;//传真
    private String note;//备注
    private String dataOrg;
    private String companyId;//公司id

    //非数据库字段
    private String categoryName;//分类名称
    
    /**
     * APP端name字段
     * @return
     */
    public String getRemark(){
    	return name;
    }
    /**
     * app端名字拼音首字母大写
     * @return
     */
    public String getPhonetic(){
    	return py;
    }
    /**
     * app客户分类
     * @return
     */
    public String getPosition(){
    	return categoryName;
    }
    /**
     * app联系人字段
     * @return
     */
    public String getDept_name(){
    	return contact01;
    }
}
